<template>
    <div>
        <el-button type="success" @click="requestData">刷新</el-button>
        <el-table
            :data="tableData"
            style="width: 100%;margin-bottom: 20px;"
            row-key="id"
            border
            default-expand-all
            :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
            <el-table-column
                prop="date"
                label="日期"
                sortable
                width="180">
                </el-table-column>
                <el-table-column
                prop="name"
                label="姓名"
                sortable
                width="180">
                </el-table-column>
                <el-table-column
                prop="address"
                label="地址">
            </el-table-column>
        </el-table>
    </div>


</template>

<script>
export default {
    data(){
        return {
            tableData:[],
        }
    },
    methods:{
        requestData(){
            this.get('/admin/user/allMenuList').then(resp=>{
                let menus = resp.data.menuList || [];
                
            });
        }

    }

}
</script>

<style>


</style>
